from enum import Enum
from pathlib import Path


class Color(Enum):
    green1 = (84, 139, 84)
    red1 = (205, 38, 38)
    gray1 = (54, 54, 54)


# 界面宽高
WIDTH, HEIGHT = 900, 495
# 桌缘
TABLE_LEFT, TABLE_RIGHT, TABLE_UP, TABLE_BOTTOM = 45, WIDTH-45, 47, HEIGHT-45
# 桌面背景颜色
BGCOLOR = Color.green1.value
# 桌面摩擦系数
miu = -1
# 重力加速度
g = 9.8
# 帧数
frames = 300
# 一个循环用时
UNIT_TIME = 1 / frames
# 根目录
ROOT_PATH = Path(__file__).parent.parent
# 碰撞桌沿损失机械能比例
LOSS_RATIO1 = 0.2
# 碰撞小球损失机械能比例
LOSS_RATIO2 = 0.1